$(document).ready(function() {
    var flag = 0;
    var browserVersion = navigator.appVersion;
    if (browserVersion.indexOf("MSIE 8.0") != "-1") {
        flag = -34;
    }
    if ($.browser.msie) {
        var rightHeight = $("#right_contant").outerHeight() + $("#right_head").outerHeight();
        $("#rightHeight").val(rightHeight);
        if (rightHeight > document.body.offsetHeight) {
            $("#right_contant").css("overflow-y", "scroll");
            $("#right_contant").css("height", document.body.offsetHeight - $(window).scrollTop() - $("#right_head").outerHeight() + flag);
//        } else {
            //            $("#right_contant").css("overflow-y", "hidden");
        }
    }
    $(window).resize(function() {
        if ($.browser.msie) {
            var rightHeight = $("#right_contant").outerHeight() + $("#right_head").outerHeight();
            $("#rightHeight").val(rightHeight);
            if (rightHeight > document.body.offsetHeight) {
                $("#right_contant").css("height", document.body.offsetHeight - $(window).scrollTop() - $("#right_head").outerHeight() + flag);
            } else {
                $("#right_contant").css("height", document.body.offsetHeight - $(window).scrollTop() - $("#right_head").outerHeight() + flag);
            }
        }
    });
    $(".ready_focus").each(function(){
          $(this).focus();
    });
});